package xuanzhen.reservation.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import xuanzhen.reservation.dao.RedPacketMapper;
import xuanzhen.reservation.pojo.RedPacket;
import xuanzhen.reservation.service.RedPacketService;
@Service
public class RedPacketServiceImpl implements RedPacketService {
	@Resource
	RedPacketMapper redPacketMapper;

	@Override
	public int insertRedPacket(RedPacket reds) throws Exception {
		redPacketMapper.insertRedPacket(reds);
		return 0;
	}

	@Override
	public List<RedPacket> selectByrid(int rid) throws Exception {
		return redPacketMapper.selectByrid(rid);
	}

	@Override
	public List<RedPacket> selectListByMap(Map<String, Object> maps) throws Exception {
		return redPacketMapper.selectListByMap(maps);
	}

	@Override
	public List<RedPacket> selectUnderNineListByMap(Map<String, Object> maps) throws Exception {
		
		return redPacketMapper.selectUnderNineListByMap(maps);
	}

	@Override
	public List<RedPacket> selectListByMapForShow(Map<String, Object> maps) throws Exception {
		// TODO Auto-generated method stub
		return redPacketMapper.selectListByMapForShow(maps);
	}
	


}
